<!DOCTYPE html>
<html lang="en" style="background:#fff;">
<head>
    <base href="${basePath}">
    <#include "common/top.html"/>
</head>
<body style="background:#fff;">
<form class="layui-form" modelAttribute="uGroundstation" name="form1" id="form1" method="post">
    <div class="layui-form-item-dept">

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">计算公式：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" type="text" name="equation" id="equation" maxlength="50"
                           placeholder="这里输入计算公式" title="计算公式"/>
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">K值：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" type="text" name="kvalue" id="kvalue" maxlength="50"
                           placeholder="这里输入K值" title="K值"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">线长：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" type="text" name="xianchang" id="xianchang" maxlength="50"
                           placeholder="这里输入线长" title="线长"/>
                </div>
            </div>
        </div>



        <div class="layui-form-item">
            <div class="layui-inline">
                <div class="layui-inline">
                    <label class="layui-form-label">安装位置：</label>
                    <div class="layui-input-inline">
                        <input class="layui-input" type="text" name="address" id="address" maxlength="50"
                               placeholder="这里输入安装位置" title="安装位置"/>
                    </div>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">报警上限：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" type="text" name="alarmHot1" id="alarmHot1" maxlength="50"
                           placeholder="这里输入报警上限" title="报警上限"/>
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">设备类型：</label>
                <div class="layui-input-inline">
                    <@c.dictselect type='DEVICETYPE' code=''></@c.dictselect>
                </div>
            </div>
        </div>


    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">小时：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmMutat2" id="alarmMutat2" maxlength="50"
                       placeholder="这里输入小时" title="小时"/>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="state" id="state" maxlength="50"
                       placeholder="这里输入状态" title="状态"/>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">突变报警启动：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmMutatUse" id="alarmMutatUse" maxlength="50"
                       placeholder="这里输入突变报警启动" title="突变报警启动"/>
            </div>
        </div>
    </div>




    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">地下水类型：</label>
            <div class="layui-input-inline">
                <@c.dictselect type='waterType' code=''>
            </@c.dictselect>

            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">供电方式：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="supplyMode" id="supplyMode" maxlength="50"
                       placeholder="这里输入供电方式" title="供电方式"/>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">报警上限：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmWater1" id="alarmWater1" maxlength="50"
                       placeholder="这里输入报警上限" title="报警上限"/>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">孔名称：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="holeName" id="holeName" maxlength="50"
                       placeholder="这里输入孔名称" title="孔名称"/>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">水位报警启动：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmWaterUse" id="alarmWaterUse" maxlength="50"
                       placeholder="这里输入水位报警启动" title="水位报警启动"/>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">经度：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="longitude" id="longitude" maxlength="50"
                       placeholder="这里输入经度" title="经度"/>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">所属矿：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="idmine" id="idmine" maxlength="50"
                       placeholder="这里输入所属矿" title="所属矿"/>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">使用报警功能：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmUse" id="alarmUse" maxlength="50"
                       placeholder="这里输入使用报警功能" title="使用报警功能"/>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">启动GIS：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="gisUse" id="gisUse" maxlength="50"
                       placeholder="这里输入启动GIS" title="启动GIS"/>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">处理方式：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="process" id="process" maxlength="50"
                       placeholder="这里输入处理方式" title="处理方式"/>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">零频：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="lingpin" id="lingpin" maxlength="50"
                       placeholder="这里输入零频" title="零频"/>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">报警下线：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmHot2" id="alarmHot2" maxlength="50"
                       placeholder="这里输入报警下线" title="报警下线"/>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">排序号：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sortNum" id="sortNum" maxlength="50"
                       placeholder="这里输入排序号" title="排序号"/>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">水温报警使用：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmHotUse" id="alarmHotUse" maxlength="50"
                       placeholder="这里输入水温报警使用" title="水温报警使用"/>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">孔口深度：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="holeDepth" id="holeDepth" maxlength="50"
                       placeholder="这里输入孔口深度" title="孔口深度"/>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">米：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmMutat1" id="alarmMutat1" maxlength="50"
                       placeholder="这里输入米" title="米"/>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">手机号：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="phone" id="phone" maxlength="50"
                       placeholder="这里输入手机号" title="手机号"/>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">报警下线：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmWater2" id="alarmWater2" maxlength="50"
                       placeholder="这里输入报警下线" title="报警下线"/>
            </div>
        </div>

    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">孔口高：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="holeHeight" id="holeHeight" maxlength="50"
                       placeholder="这里输入孔口高" title="孔口高"/>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">水位报警类型：</label>
            <div class="layui-input-inline">
                <@c.dictselect type='alarmWaterType' code=''>
                </@c.dictselect>
            </div>
        </div>


        <div class="layui-inline">
            <label class="layui-form-label">分站站号：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="substationCode" id="substationCode" maxlength="50"
                       placeholder="这里输入分站站号" title="分站站号"/>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">使用定时汇报：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="alarmTimUse" id="alarmTimUse" maxlength="50"
                       placeholder="这里输入使用定时汇报" title="使用定时汇报"/>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">纬度：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="latitude" id="latitude" maxlength="50"
                       placeholder="这里输入纬度" title="纬度"/>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">机构号：</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="groupId" id="groupId" maxlength="50"
                       placeholder="这里输入机构号" title="机构号"/>
            </div>
        </div>
    </div>
    </div>
</form>
</body>
<script type="text/javascript">

    layui.use(['form', 'table', 'laydate'], function () {
        var form = layui.form;
        var laydate = layui.laydate;

        form.render();

    });


    function submitHandler() {
        var prefix = basePath + "device/groundstation";
        $.operate.post(prefix + '/addUGroundstation', $("#form1").serializeArray(), function (result) {
            if (result.status == true) {
                layer.alert(result.msg, function (index) {
                    var index1 = parent.layer.getFrameIndex(window.name); //获取窗口索引
                    parent.layer.close(index1);
                    layer.close(index);
                });
            } else {
                parent.layer.alert(result.msg);
            }
        });
    }
</script>
</body>
</html>
